﻿<%@ Page Title="Bảng giá thuê xe" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Carprice.aspx.cs" Inherits="Transport.Carprice" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%
    string banggia = Request.QueryString["banggia"];
    string dichvu = Request.QueryString["dichvu"];
    string mien = Request.QueryString["mien"];
    %>
<div id="column-left">
    <div class="moduletable">
        <div class="box-heading">Thuê xe</div>
            <div id="categoty_content">
                <ul>
                                    <li><div><a <% if(banggia == "theongay") Response.Write("class=\"selected\""); %>href="./Carprice.aspx?banggia=theongay">Bảng giá theo ngày</a></div></li>
                                    <li><div><a <% if(banggia == "theomien") Response.Write("class=\"selected\""); %> href="/Carprice.aspx?banggia=theomien">Bảng giá lộ trình</a></div></li>
                 </ul>
            </div>
        </div>
</div>
<div class="wrapper category_content">
        <div class="ordtr">
			 Bảng giá thuê xe
        </div>
<div class="main_category_wrapper min">
    <div id="content_nav">
        
        
        <%
            switch (banggia)
            {
                case "theongay":
                    {
                        if (null != dichvu)
                            Response.Write("<table class=\"table_data\"><h2>Bảng giá theo ngày</h2></br>"+getBangGiaTheoNgayByServiceID(dichvu)+"</table>");
                        else
                            Response.Write("<table class=\"table_data\"><h2>Bảng giá theo ngày</h2></br>" + getBangGiaTheoNgayByServiceID() + "</table>");
                    }
                    break;
                case "theomien":
                    if (null != mien)
                        Response.Write("<table class=\"table_data\"><h2>Bảng giá theo lỗ trình</h2></br>" + getBangGiaTheoMienByServiceID(mien) + "</table>");
                    else
                        Response.Write("<table class=\"table_data\"><h2>Bảng giá theo lỗ trình</h2></br>" + getBangGiaTheoMienByServiceID() + "</table>");
                    break;
            }
             %>
          
    </div>
    <div class="data_footer">
     <%
            switch (banggia)
            {
                case "theongay":
                    { %>
                        <div class="title">Chọn dịch vụ: </div>
                        <div class="select_form">
                        <form method="get">
                            <input type="hidden" name="banggia" value="<% Response.Write(banggia); %>" />
                            <select id="dichvu" name="dichvu" onchange="this.form.submit()">
                            <%
                                Response.Write(GetAllService(dichvu));
                                 %>
                            </select>
                        </form>
                        </div>
                    <%}
                    break;
                case "theomien":
                     { %>
                        <div class="title">Chọn miền: </div>
                        <div class="select_form">
                        <form method="get">
                            <input type="hidden" name="banggia" value="<% Response.Write(banggia); %>" />
                            <select id="dichvu" name="mien" onchange="this.form.submit()">
                            Chọn miền
                            <%
                                Response.Write(GetAllMien(mien));
                                 %>
                            </select>
                        </form>
                        </div>
                    <%}
                    break;
            }
        %>
         <div id="vat"><h5><i>Lưu ý: Đơn vị tính USD ( đã bao gồm VAT)</i></h5></div>
    </div>
</div>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentFooter" runat="server">
</asp:Content>
